﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Whir.Common.WebHelper;

public partial class FileManager : System.Web.UI.Page
{
    protected string uploadcontrol = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        RoleHelper.IsLogin();    //登录判断
        uploadcontrol = NetRequest.GetString("uploadcontrol");//控件名称
    }

    /// <summary>
    /// 获取选中的文件名
    /// </summary>
    protected string SelectFileName
    {
        get { return WebFtp1.SelectFileName; }
    }

    /// <summary>
    /// 获取选择的文件全路径 +　文件名
    /// </summary>
    protected string SelectFullPath
    {
        get
        {
            if (string.IsNullOrEmpty(SelectFileName))
                return "";
            else
                return WebFtp1.SelectFullPath.Replace("\\", "/").Remove(0, 1);
        }
    }
}
